/**
 * Copyright (c) 2005-2012 https://github.com/zhangkaitao
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package com.aiwei.tdjk.sys.user.service;

import com.aiwei.tdjk.common.service.BaseService;
import com.aiwei.tdjk.sys.user.entity.UserOrganizationJob;
import com.aiwei.tdjk.sys.user.repository.UserOrganizationJobRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserOrganizationJobService extends BaseService<UserOrganizationJob, Long> {

    @Autowired
    private UserOrganizationJobRepository getUserOrganizationRepository() {
        return (UserOrganizationJobRepository) baseRepository;
    }


    public List<UserOrganizationJob> findByUserId(Long userId) {
        return getUserOrganizationRepository().findByUserId(userId);
    }



}
